package com.zhy.springmvc.util;

import com.zhy.springmvc.type.RCodeType;
import com.zhy.springmvc.vo.R;

public class Rutil {
    public static R ok(){
        R r = new R();
        r.setCode(RCodeType.成功.getCode());
        r.setMsg("OK");
        return r;
    }

    public static R fail(){
        R r = new R();
        r.setCode(RCodeType.失败.getCode());
        r.setMsg("FAIL");
        return r;
    }



}
